﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{
    class 蹒跚的食尸鬼:Minion
    {
        public 蹒跚的食尸鬼():base()
        {
            damage = 1;
            Star = 2;
            Attack = 1;
            Health = 3;
        }


        public override void Deathrattle()
        {
            List<Minion> Todo = new List<Minion>();
            foreach (Minion m in pool.places)
                if(m!=null&&m!=this)
                    Todo.Add(m);
            foreach (Minion m in pool.next.places)
                if(m!=null)
                    Todo.Add(m);
            pool.board.Aoe(damage, Todo);
            base.Deathrattle();
        }


        public override Minion NewOne()
        {
            return new 蹒跚的食尸鬼();
        }
    }


    class 蹒跚的食尸鬼_金色 : 蹒跚的食尸鬼
    {
        public 蹒跚的食尸鬼_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            damage *= 2;
        }

        public override Minion NewOne()
        {
            return new 蹒跚的食尸鬼_金色();
        }
    }
}
